package io.wdb.modules.generator.generator.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import io.wdb.modules.generator.generator.entity.BsBookshelfWarnEntity;
import io.wdb.modules.generator.generator.service.BsBookshelfWarnService;
import io.wdb.modules.manager.heart.dao.BsBookshelfWarnDao;



@Service("bsBookshelfWarnService")
public class BsBookshelfWarnServiceImpl implements BsBookshelfWarnService {
	@Autowired
	private BsBookshelfWarnDao bsBookshelfWarnDao;
	
	@Override
	public BsBookshelfWarnEntity queryObject(String bookshelfCode){
		return bsBookshelfWarnDao.queryObject(bookshelfCode);
	}
	
	@Override
	public List<BsBookshelfWarnEntity> queryList(Map<String, Object> map){
		return bsBookshelfWarnDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return bsBookshelfWarnDao.queryTotal(map);
	}
	
	@Override
	public void save(BsBookshelfWarnEntity bsBookshelfWarn){
		bsBookshelfWarnDao.save(bsBookshelfWarn);
	}
	
	@Override
	public void update(BsBookshelfWarnEntity bsBookshelfWarn){
		bsBookshelfWarnDao.update(bsBookshelfWarn);
	}
	
	@Override
	public void delete(String bookshelfCode){
		bsBookshelfWarnDao.delete(bookshelfCode);
	}
	
	@Override
	public void deleteBatch(String[] bookshelfCodes){
		bsBookshelfWarnDao.deleteBatch(bookshelfCodes);
	}
	
}
